'''
10、任意输入一个小于100大于10的数，统计出1 到 该数 之和
'''

def getSum(num):
    sum = 0
    for i in range(num+1):
        sum = sum + i
    return sum

num = int(input("任意输入一个小于100大于10的数："))
print(f"{num}以内的和是：",getSum(num))
print("=======================================")

def factorial(num):
    if num ==0 or num==1:
        return num
    else:
        return num + factorial(num-1)

print(f"{num}以内的和是：",factorial(num))